VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3030
   ClientLeft      =   120
   ClientTop       =   450
   ClientWidth     =   4560
   LinkTopic       =   "Form1"
   ScaleHeight     =   3030
   ScaleWidth      =   4560
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdIncrement 
      Caption         =   "Increment"
      Height          =   495
      Left            =   120
      TabIndex        =   3
      Top             =   2400
      Width           =   1215
   End
   Begin VB.TextBox txtStaticValue 
      Height          =   285
      Left            =   2160
      TabIndex        =   2
      Text            =   "txtStaticValue"
      Top             =   840
      Width           =   2175
   End
   Begin VB.CommandButton cmdGetValue 
      Caption         =   "Get Static Value From Last"
      Height          =   495
      Left            =   120
      TabIndex        =   1
      Top             =   720
      Width           =   1695
   End
   Begin VB.CommandButton cmdNew 
      Caption         =   "New Instance"
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label lblCurrent 
      Caption         =   "{#}"
      Height          =   255
      Left            =   2640
      TabIndex        =   5
      Top             =   2520
      Width           =   1215
   End
   Begin VB.Label lblCurrentValueLabel 
      Alignment       =   1  'Right Justify
      Caption         =   "Current Value:"
      Height          =   255
      Left            =   1440
      TabIndex        =   4
      Top             =   2520
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
    Option Explicit

Dim vm_TestInstance As StaticTest

Private Sub refreshDisplay()
lblCurrent = vp_Number
End Sub

Private Sub cmdGetValue_Click()
txtStaticValue = vm_TestInstance.staticNumber
End Sub

Private Sub cmdIncrement_Click()
vp_Number = vp_Number + 1
refreshDisplay
End Sub

Private Sub cmdNew_Click()
Set vm_TestInstance = New StaticTest
End Sub

Private Sub Form_Load()
refreshDisplay
Set vm_TestInstance = New StaticTest
End Sub
